package com.mc.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mc.dao.APropertyMapper;
import com.mc.model.AProperty;
import com.mc.service.APropertyService;

@Service
public class APropertyServiceImpl implements APropertyService {
	
	@Autowired
	private APropertyMapper aPropertyMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return aPropertyMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(AProperty record) {
		return aPropertyMapper.insert(record);
	}

	@Override
	public int insertSelective(AProperty record) {
		return aPropertyMapper.insertSelective(record);
	}

	@Override
	public AProperty selectByPrimaryKey(Integer id) {
		return aPropertyMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(AProperty record) {
		return aPropertyMapper.updateByPrimaryKey(record);
	}

	@Override
	public int updateByPrimaryKey(AProperty record) {
		return aPropertyMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<AProperty> selectAll() {
		return aPropertyMapper.selectAll();
	}
	
	public int updateValidByPrimaryKey(AProperty record) {
		return aPropertyMapper.updateValidByPrimaryKey(record);
	}
}